package com.javafactroy.kunlong.codefactroy.convert;


import com.javafactroy.kunlong.base.metadata.valueobj.MetadataTable;
import com.javafactroy.kunlong.data.dto.MetadataTablePropApiDto;
import com.javafactroy.kunlong.data.iface.IentityConvert;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

/**
 * @author raymond.lei@163.com
 * @date 2023-11-17 22:51:30
 */

@Mapper(componentModel = "spring")
public interface MetadataTablePropConvert extends IentityConvert<MetadataTablePropApiDto, MetadataTable> {
    MetadataTablePropConvert INSTANCE = Mappers.getMapper(MetadataTablePropConvert.class);

    @Mappings({
            @Mapping(source = "tableComment", target = "tableComment"),
    })
    MetadataTablePropApiDto toOne(MetadataTable one);

}
